package pure.manager
{


public class BrushManager
{
	public function BrushManager()
	{
		
	}
	
	public var brushIndex:int;
	public var landformIndex:int=0;

	public function get tileX():int{
		return brushIndex%MapManager.instance.currMap.numTileInsheet;
	}
	
	public function get tileY():int{
		return int(brushIndex/MapManager.instance.currMap.numTileInsheet);
	}
	
	// 单例
	public static function get instance():BrushManager {
		if (!_instance) _instance = new BrushManager();
		return _instance;
	}
	private static var _instance:BrushManager;
}
}